{imp:"c_pub/m-frame"}<!--继承父模板-->

{block:init}{:parent}<?php
$whr = "auser='$uname'";
if(empty($this->key)){
    $sbtitle = lang('user.pub_hisord');
}elseif($this->key=='nodone'){ 
    $sbtitle = lang('user.ord_noend');
    $whr .= " AND ordstat='new'";
}elseif($this->key=='isdone'){
    $sbtitle = lang('user.ord_isend');
    $whr .= " AND ordstat='done'";
}
$mdtitle =  lang('user.pub_order');
$ordcnt = 0;
?>{/block:init}

{block:pimp}
<style type='text/css'>
table.tblist {
    width: 100%;
    border: 1px solid #A6CAF0;
    border-collapse: collapse;
}
td { word-break:break-all; padding:8px 0px; }
</style>

{/block:pimp}

{block:main}

<table class="tblist" border="1"> 
    <tr class="title">
    <td class="tc">{lang(user.ord_no2)}</td>
    <td class="tc">{lang(user.ord_stat)}</td>
    <td class="tc">{lang(user.ord_amount)}</td>
    <td class="tc">{lang(user.ord_time)}</td>
    </tr>
    {tag:ordlist=[List][modid,corder][where,$whr][limit,100]}
    <?php $item=exvOcar::ilist('coms_coitem',"ordid='$t_cid'",2); @$v=@$item['data'][0]; @$ordcnt=count($t_ordlist); ?>
    <tr>
    <td class="tc"><a href="{surl(chn:0)}?ocar-invoce&ordid={=$t_cid}" target="detail">{=$t_cid}</a></td>
    <td class="tc">{sopt($t_ordstat,corder.ordstat,0,0)}</td>
    <td class="tc">{=$t_feeamount}</td>
    <td class="tc">{stime($t_atime,y-m-d)}</td>
    </tr>
    {/tag:ordlist}
    {if count($ordcnt)==0}
    <tr>
    <td> {lang(flow.dops_nodata)} </td>
    </tr>
    {/if}
</table>

{/block:main}
